﻿using System;
using System.Collections.Generic;

namespace Common.Com.UDP
{
    /// <summary>
    /// UDP通信消息
    /// </summary>
    [Serializable]
    public class UDPMessage
    {
        /// <summary>
        /// 编号
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 数据字节数组
        /// </summary>
        public byte[] Data { get; set; }
        /// <summary>
        /// 是否已阅读
        /// </summary>
        public bool IsRead { get; set; }
        /// <summary>
        /// 接收时间
        /// </summary>
        public DateTime Pdate { get; set; }
        /// <summary>
        /// 来源
        /// </summary>
        public string FromIP { get; set; }
        /// <summary>
        /// 消息接受者
        /// </summary>
        public int Uid { get; set; }
    }
}
